Close parenthesis fix (#580)

* close parenthesis fix

* possible map fix

* remove ending parenthesis when passing options
This commit is contained in:
Vibhor Gupta
2019-04-20 03:45:19 +05:30
committed by Jeffrey Warren
parent e7fbada71e
commit df09cf62d0
2 changed files with 2 additions and 2 deletions

View File

@@ -432,7 +432,7 @@ Image sequencer supports stringifying a sequence which is appended to the url an
channel{channel:green},invert{}
```
Sequencer also supports the use of `()` in place of `{}` for backward compatibility with older links. (This syntax is deprecated and should be avoided as far as possible)
The use of `()` in place of `{}` for backward compatibility with older links is now **deprecated**. (There is no longer support for the following syntax, and should be avoided)
```
channel(channel:green),invert()
```

View File

@@ -105,7 +105,7 @@ module.exports = function(steps, modulesInfo, addSteps, copy) {
stepSettings = stepSettings.split('|').reduce(function formatSettings(accumulator, current, i) {
var settingName = current.substr(0, current.indexOf(':')),
settingValue = current.substr(current.indexOf(':') + 1);
settingValue = settingValue.replace(/^\(/, '').replace(/\)$/, ''); // strip () at start/end
settingValue = settingValue.replace(/^\(/, ''); // strip () at start/end
settingValue = settingValue.replace(/^\{/, '').replace(/\}$/, ''); // strip {} at start/end
settingValue = decodeURIComponent(settingValue);
current = [