streamlit / docs

Source code for the Streamlit Python library documentation
https://docs.streamlit.io
Apache License 2.0
119 stars 474 forks source link

Fix regex string literals to be raw strings which solves Syntax Error about the backslash escape character #1087

Closed whitphx closed 3 months ago

whitphx commented 4 months ago

📚 Context

Fixes the following error.

 ❯ streamlit run data.text_column.py

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.68.104:8501

  For better performance, install the Watchdog module:

  $ xcode-select --install
  $ pip install watchdog

/workspace/streamlit/docs/python/api-examples-source/data.text_column.py:24: SyntaxWarning: invalid escape sequence '\.'
  validate="^st\.[a-z_]+$",

🧠 Description of Changes

Revised:

Insert screenshot of your updated UI/code here

Current:

Insert screenshot of existing UI/code here

💥 Impact

Size:

🌐 References

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

sfc-gh-dmatthews commented 3 months ago

Thanks @whitphx!