Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functionCommaSpaceFix.js 526B

12345678910111213141516171819202122232425262728293031323334
  1. // @ts-nocheck
  2. 'use strict';
  3. module.exports = function (params) {
  4. const { div, index, nodes, expectation, position, symb } = params;
  5. if (expectation.startsWith('always')) {
  6. div[position] = symb;
  7. return true;
  8. }
  9. if (expectation.startsWith('never')) {
  10. div[position] = '';
  11. for (let i = index + 1; i < nodes.length; i++) {
  12. const node = nodes[i];
  13. if (node.type === 'comment') {
  14. continue;
  15. }
  16. if (node.type === 'space') {
  17. node.value = '';
  18. continue;
  19. }
  20. break;
  21. }
  22. return true;
  23. }
  24. };