Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Function convertToEmoji() breaks on regex #20

Closed
Atulin opened this issue May 19, 2019 · 7 comments
Closed

Function convertToEmoji() breaks on regex #20

Atulin opened this issue May 19, 2019 · 7 comments
Labels
bug Something isn't working

Comments

@Atulin
Copy link

Atulin commented May 19, 2019

$ node build name --atulin
E:\Software\Laragon\www\gitfolio\populate.js:12
    if(text.match(/(?<=:\s*).*?(?=\s*:)/gs) != null){
                  ^

SyntaxError: Invalid regular expression flags
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (E:\Software\Laragon\www\gitfolio\build.js:3:22)
@Atulin
Copy link
Author

Atulin commented May 19, 2019

Thought it was me being dumb with name --atulin, instead of --name atulin, but no, breaks on either.

$ node build --name atulin
E:\Software\Laragon\www\gitfolio\populate.js:12
    if(text.match(/(?<=:\s*).*?(?=\s*:)/gs) != null){
                  ^

SyntaxError: Invalid regular expression flags
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:599:28)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (E:\Software\Laragon\www\gitfolio\build.js:3:22)

@imfunniee
Copy link
Owner

hmm works for me, could you try it from scratch, like fresh clone.

hmm

@imfunniee imfunniee added the bug Something isn't working label May 19, 2019
@Atulin
Copy link
Author

Atulin commented May 19, 2019

That was a fresh clone. Cloned it again, same issue.

$ node -v
v8.9.0

$ npm -v
6.8.0

@imfunniee
Copy link
Owner

i tested this on node version v10.15.1 and it works fine, could you try upgrading your node. similar issue here

@Atulin
Copy link
Author

Atulin commented May 19, 2019

Updated Node to 10.15.3 and it works perfectly fine now. Can be closed 👌

@imfunniee
Copy link
Owner

nice 👌

@blesson3
Copy link

Same issue, also works with

10:18:40 ~/.../gitfolio master$ node --version
v12.3.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants