We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please allow spaces to be used around the pipe operator (|). They make filters much easier to read.
|
Before:
div.movies@ { .title { $title }; .date { $date }; .duration { $duration|match("\\d+")|get(0)|Number }; }
After:
div.movies@ { .title { $title }; .date { $date }; .duration { $duration | match("\\d+") | get(0) | Number }; }
The text was updated successfully, but these errors were encountered:
Nice idea. I'll investigate it in recent days.
For now, you may use a customized filter to enhance the readability 😄
filter getFirstNumber() { return Number(this.match("\\d+")[0]) } div.movies@ { .title { $title }; .date { $date }; .duration { $duration|getFirstNumber }; }
Sorry, something went wrong.
No branches or pull requests
Please allow spaces to be used around the pipe operator (
|
). They make filters much easier to read.Before:
After:
The text was updated successfully, but these errors were encountered: