Giter Club home page Giter Club logo

Comments (6)

jeffski avatar jeffski commented on July 27, 2024 2

Hi @triwats, yes, I'm just using a backslash \ to secape a $, not using any kind of encapsulation around it.

from serverless-dotenv-plugin.

tafelnl avatar tafelnl commented on July 27, 2024 2

I think this should really be mentioned in the docs. Not everyone is aware of this, and they might bang their head against the wall while figuring this out ;)

from serverless-dotenv-plugin.

colynb avatar colynb commented on July 27, 2024

from serverless-dotenv-plugin.

shierro avatar shierro commented on July 27, 2024

yeah i thought so, after checking seeing those $ on the library but i'm not too sure what it does 🤣 I managed to escape it on my .env file using a single quote, and a forward slash

.env

RANDOM_HASH='XXXXX#XXXXX%9^XX\$4\$FYNHtpPs6uc'

Thanks for taking time too look into this @colynb

from serverless-dotenv-plugin.

jeffski avatar jeffski commented on July 27, 2024

This must have been introduced at some stage in the last year or so as it used to work without escaping. Version 2.1.1 works fine, I just used v2.3.2 today in a new project and got caught out by this issue. Thankfully you can escape the $ symbol in both versions and that will work.

from serverless-dotenv-plugin.

triwats avatar triwats commented on July 27, 2024

Howdy @jeffski - by escaping you mean usage of a \ or by encapsulation? I'm hitting this too, thanks!

EDIT: Forget this, just escaping normally with a \ works for me, encapuslation of either ' or " however didn't. This is a bit probematic in my case as I'm using it to concat a path for SSM and a environment together.

from serverless-dotenv-plugin.

Related Issues (20)

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.