Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Invalid regular expression #6

Open
dImrich opened this issue Sep 16, 2017 · 0 comments
Open

SyntaxError: Invalid regular expression #6

dImrich opened this issue Sep 16, 2017 · 0 comments

Comments

@dImrich
Copy link

dImrich commented Sep 16, 2017

Hello,
I have troubles with some titles.

Here is error

/home/admin/node/Project/node_modules/loopback-slug/lib/index.js:50
obj[options['slug']] = new RegExp('^' + strlug + '($|' + options.separator + ')');

SyntaxError: Invalid regular expression: /^1-wow-truly-stunning-blonde-beauty!($|-)/: Nothing to repeat
at new RegExp (native)
at make (/home/admin/node/Project/node_modules/loopback-slug/lib/index.js:50:32)
at Object.module.exports.middleware (/home/admin/node/Project/node_modules/loopback-slug/lib/index.js:129:9)
at /home/admin/node/Project/common/models/loop.js:9:18
at notifySingleObserver (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:160:22)
at /home/admin/node/Project/node_modules/loopback-datasource-juggler/node_modules/async/dist/async.js:3025:16
at replenish (/home/admin/node/Project/node_modules/loopback-datasource-juggler/node_modules/async/dist/async.js:881:17)
at /home/admin/node/Project/node_modules/loopback-datasource-juggler/node_modules/async/dist/async.js:885:9
at eachLimit$1 (/home/admin/node/Project/node_modules/loopback-datasource-juggler/node_modules/async/dist/async.js:3114:22)
at Object. (/home/admin/node/Project/node_modules/loopback-datasource-juggler/node_modules/async/dist/async.js:917:16)
at doNotify (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:157:11)
at doNotify (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:155:49)
at doNotify (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:155:49)
at doNotify (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:155:49)
at Function.ObserverMixin._notifyBaseObservers (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:178:5)
at Function.ObserverMixin.notifyObserversOf (/home/admin/node/Project/node_modules/loopback-datasource-juggler/lib/observer.js:153:8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant