We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed61430 commit 7b5c04fCopy full SHA for 7b5c04f
app/models/document.rb
@@ -66,6 +66,19 @@ def custom_uniqueness_check
66
errors.add(:url, "A document for this URL already exists! Inspect it here: #{go_to_doc}")
67
end
68
69
+ def convert_xpath_to_css
70
+ runner = NodeRunner.new(
71
+ <<~JAVASCRIPT
72
+ const xPathToCss = require('xpath-to-css')
73
+ const convert = (xpath) => {
74
+ const css = xPathToCss(xpath)
75
+ return css;
76
+ }
77
+ JAVASCRIPT
78
+ )
79
+ runner.convert xpath
80
+ end
81
+
82
def fetch_ota_text
83
versions = %w[pga-versions contrib-versions]
84
service_name = service.name
0 commit comments