mirror of
https://github.com/discourse/discourse.git
synced 2025-04-14 23:02:55 +08:00

Note: ``` def foo(bar: 1) end foo({bar: 2}) # raises a deprecation, instead use: foo(**{bar: 2}) ``` Additionally when matching regexes always use strings. It does not make sense to match a non string to a regex.