Closed jaddison closed 4 years ago
Described here in the Maizzle project; template variables in a URL break Maizzle's urlParameters functionality.
urlParameters
posthtml-url-parameters
Looks like the fix is to upgrade is-url-superb from 3.0.0 to 4.0.0; this code returns false with 3.0.0, but true with 4.0.0 (I used repl.it):
is-url-superb
false
true
require('is-url-superb')('https://example.com/{{ var }}')
Reopening this as it has not been actually solved, see failing test in https://github.com/posthtml/posthtml-url-parameters/commit/4c6994b9f8aea0ec57572c23a3ed8f1d67db65d7
Problem
Described here in the Maizzle project; template variables in a URL break Maizzle's
urlParameters
functionality.Environment
posthtml-url-parameters
plugin version: 1.0.2The Test + Fix
Looks like the fix is to upgrade
is-url-superb
from 3.0.0 to 4.0.0; this code returnsfalse
with 3.0.0, buttrue
with 4.0.0 (I used repl.it):