Regex pattern throws error
juliedavila opened this issue · comments
The following throws an error
const notHiddenFile = (filePath) => !(/(^|\/)\.[^/.]/).test(filePath)
The error is
SyntaxError: Unexpected token [
Like Codepen, but for native apps!
juliedavila opened this issue · comments
The following throws an error
const notHiddenFile = (filePath) => !(/(^|\/)\.[^/.]/).test(filePath)
The error is
SyntaxError: Unexpected token [