Git Product home page Git Product logo

Comments (6)

bgrins avatar bgrins commented on July 20, 2024

The code, or the screenshot? I think the code is in sync unless if I'm missing something

from devtools-snippets.

hvsw avatar hvsw commented on July 20, 2024

The searchvalue argument in replace function. "//g" and "/+/g"

return { "Key": qs.split("=")[0], "Value": qs.split("=")[1], "Pretty Value": decodeURIComponent(qs.split("=")[1]).replace(//g," ") }

return { "Key": qs.split("=")[0], "Value": qs.split("=")[1], "Pretty Value": decodeURIComponent(qs.split("=")[1]).replace(/+/g," ") }

from devtools-snippets.

bgrins avatar bgrins commented on July 20, 2024

Ah I see that now, thanks. Maybe is a bug with the rakefile at: https://github.com/bgrins/devtools-snippets/blob/master/Rakefile, because gh-pages is up to date after running rake build

from devtools-snippets.

bgrins avatar bgrins commented on July 20, 2024

Hm, well running pygmentize -f html snippets/querystringvalues/querystringvalues.js seems to produce the correct output so it's not that

from devtools-snippets.

bgrins avatar bgrins commented on July 20, 2024

And it appears OK in the snippets.json file: https://bgrins.github.io/devtools-snippets/snippets.json

from devtools-snippets.

bgrins avatar bgrins commented on July 20, 2024

Well, I'm not sure why but the /+/g is still there in the markup variable before the call to with_markup = template.gsub(regex, markup) in the rakefile:

with_markup = template.gsub(regex, markup)
. After this line, with_markup seems to be //g as far as I can tell.

from devtools-snippets.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.