summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-04-13 15:54:50 -0700
committerPete Higgins <pete@peterhiggins.org>2020-04-15 16:51:50 -0700
commit196c6185b811a816cef17b2c56ca0066eaae00b5 (patch)
tree843113438a5e994edbee115f26d8aa3c802708d2
parent7a5f1eaf3483a92459cb5ab533f956158f9b55c0 (diff)
downloadohai-196c6185b811a816cef17b2c56ca0066eaae00b5.tar.gz
Add rubular link for de-camelcase regex.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--lib/ohai/plugins/windows/dmi.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai/plugins/windows/dmi.rb b/lib/ohai/plugins/windows/dmi.rb
index 9161da5c..4037dc98 100644
--- a/lib/ohai/plugins/windows/dmi.rb
+++ b/lib/ohai/plugins/windows/dmi.rb
@@ -35,6 +35,7 @@ Ohai.plugin(:DMI) do
# * Acronyms that occur at the end of the name, eg SKU, DeviceID
#
# This cannot handle some property names, eg SMBIOSBIOSVersion.
+ # https://rubular.com/r/FBNtXod4wkZGAG
SPLIT_REGEX = /[A-Z][a-z0-9]+|[A-Z]{2,}(?=[A-Z][a-z0-9])|[A-Z]{2,}/.freeze
collect_data(:windows) do