Skip to content

Commit

Permalink
fix: wrong regex w slashes
Browse files Browse the repository at this point in the history
wrong regex matching when slashes get replace back and forth (while page slug creation)
  • Loading branch information
wonknu committed Feb 6, 2017
1 parent 70f99c2 commit 0fad2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/public/abecms/scripts/modules/FormCreate.js
Expand Up @@ -212,7 +212,7 @@ export default class FormCreate {
var slug = slugs[this._selectedTemplate]
var template = Handlebars.compile(slug)
slug = template(values)
slug = slug.replace(/\/g/, '__abe_escape_slash__')
slug = slug.replace(/\//g, '__abe_escape_slash__')
slug = limax(slug, {separateNumbers: false})
slug = slug.replace(/__abe_escape_slash__/g, '/')

Expand Down

0 comments on commit 0fad2fd

Please sign in to comment.